
/**
 * @author Jorge Hernandez
 */
class org.molamil.acto.props.PropWrapper {
	
	
	// Properties
	
	private var _name:String;
	private var _value:Object;
	private var _parent:Object;
	
	
	// Constructor
	
	public function PropWrapper(name:String, value:Object, parent:Object) {
		_name = name;
		_value = value;
		_parent = parent;
	}
	
	
	// Functions
	
	public function applyValue():Void {
		_parent[_name] = _value;
		trace("");		trace("!!!!!!!!!!!!!!!!!!!!!!!!! _value = " + _value);		trace("");
	}
	
	public function toString():String {
		var s:String = "org.molamil.acto.props.PropWrapper" +
					   "\n\t name = " + _name +
					   "\n\t value = " + _value +
					   "\n\t parent = " + _parent;
		return s;
	}
	
	
	// Getter/Setter
	
	public function get name():String {
		return _name;
	}
	
	public function set name(name:String):Void {
		_name = name;
	}
	
	public function get value():Object {
		return _value;
	}
	
	public function set value(value:Object):Void {
		_value = value;
	}
	
	public function get parent():Object {
		return _parent;
	}
	
	public function set parent(parent:Object):Void {
		_parent = parent;
	}
	
	
}
